package com.yanqu.road.entity.enums;

public enum eMarriageStatusType {
    /**
     * 等待联姻
     */
    WAIT(0),
    /**
     * 求婚中
     */
    APPLY(1),
    /**
     * 已婚
     */
    MARRIED(2),
    /**
     * 孤独终老
     */
    LONELY(3),
    /**
     * 等待跨服发布
     */
    WaitCrossPublish(4),
    /**
     * 跨服发布
     */
    CrossPublish(5),
    /**
     * 商会发布联姻
     */
    UnionApply(6),
    /**
     * 等待跨服发布(商会分组)
     */
    WaitCrossWorldPublish(7),
    /**
     * 跨服发布(商会分组)
     */
    CrossWorldPublish(8),
    ;

    eMarriageStatusType(int value) {
        this.value = value;
    }

    private int value;

    public int getValue() {
        return value;
    }

    public static eMarriageStatusType parse(int value) {
        eMarriageStatusType[] values = eMarriageStatusType.values();
        for (eMarriageStatusType statusType : values) {
            if (statusType.value == value) {
                return statusType;
            }
        }
        return null;
    }
}
